<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
<link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
<title>毕业生简历管理系统</title>
    <style type="text/css">
        a:link {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:visited {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:hover {
            font-size: 12px;
            color: #999999;
            text-decoration: none;
        }
        a svg:hover{
            transform: scale(1.2);
        }
        h1{
            font-family: 华文行楷;
        }
    </style>
</head>
<body>
<script type="text/javascript" src="js/jquery.js"></script>
<div id="container">
        <div id="hd">
            <div class="hd-wrap ue-clear">
                <div class="top-light"></div>
                <h1>毕业生简历管理系统</h1>
                <div class="login-info ue-clear">
                    <div class="welcome ue-clear"><span>欢迎您,</span><a href="employerRecommend?e_id=${employer.e_id}" class="user-name">${employer.name}</a></div>
                </div>
                <div class="toolbar ue-clear">
                    <a href="employerExit" class="quit-btn exit"></a>
                </div>
            </div>
        </div>
        <div id="bd">
            <div class="wrap ue-clear">
                <div class="sidebar">
                    <h2 class="sidebar-header"><p>功能导航</p></h2>
                    <ul class="nav">
                        <li class="recommend"><div class="nav-header" onclick="employerSkip1()"><a  class="ue-clear"><span>内容推荐</span></a></div></li>
                        <li class="position_manage"><div class="nav-header" onclick="employerSkip8()"><a class="ue-clear"><span>招聘岗位管理</span></a></div>
                        <li class="search"><div class="nav-header" onclick="employerSkip7()"><a class="ue-clear"><span>人才搜索</span></a></div></li>
                        <li class="inform"><div class="nav-header" onclick="employerSkip5()" ><a  class="ue-clear"><span>求职者通知</span></a></div></li>
                        <li class="manage"><div class="nav-header" onclick="employerSkip6()" ><a  class="ue-clear"><span>聘用信息反馈</span></a></div></li>
                    </ul>
                </div>
            <div class="content">
                <div class="title"><h2>岗位管理</h2></div>
                <div class="query">
                    <form method="post" action="findPositionsByName">
                        <input name="e_id" value="${sessionScope.employer.e_id}" hidden>
                        <div class="conditions name ue-clear" style="margin-top: -1px;width: 441px">
                            <label style="width: 140px">岗位名称：</label>
                            <input style="width:195px;height:25px;border:1px solid #C5D6E0" name="pos_name" type="text" value="">
                        </div>
                        <div class="query-btn ue-clear">
                            <input style="background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="查询"/>
                            <input style="background-color:#EFF6FA;color:black;border-radius:10px" type="reset" value="清空"/>
                        </div>
                        <input style="background-color:#8eb2d2;color:white;border-radius:10px;float: right;margin-top: -29px;margin-right: 18px;" type="button" onclick="addPosition()" value="添加"/>
                    </form>
                </div>
                <div class="table-box">
                    <table>
                        <thead>
                        <tr id="tr">
                            <th class="num">序号</th>
                            <th class="num">岗位</th>
                            <th class="num">要求</th>
                            <th class="num">地区</th>
                            <th class="num">月薪</th>
                            <th class="num">发布时间</th>
                            <th class="num">编辑/删除</th>
                            <th class="num">发布/撤销</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${pageInfo.list}" var ="position"  begin="0" varStatus="status">
                            <tr>
                                <td class="num" aria-readonly="true">${status.count }</td>
                                <td class="num" aria-readonly="true">${position.pos_name}</td>
                                <td class="num" aria-readonly="true">${position.job_requir}</td>
                                <td class="num" aria-readonly="true">&nbsp;${position.address}</td>
                                <td class="num" aria-readonly="true">${position.salary}</td>
                                <td class="num" aria-readonly="true">${position.release_time}</td>
                            <td class="num">
                                <a class="num"  href="updatePosition?p_id=${position.p_id }" title="编辑">
                                    <svg t="1647835126790" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12353" width="35" height="35"><path d="M414.72 723.2c-11.733333 11.733333-27.733333 18.56-44.16 18.773333l-164.266667 2.56c-18.986667-1.706667-33.92-16.64-35.626666-35.626666l2.56-164.266667c0.213333-16.64 7.04-32.426667 18.773333-44.16L498.56 193.92l222.72 222.72L414.72 723.2z" fill="#2953FF" p-id="12354"></path><path d="M749.226667 388.693333L526.293333 165.973333l41.813334-41.813333a85.504 85.504 0 0 1 120.746666 0l102.186667 102.186667a85.504 85.504 0 0 1 0 120.746666l-41.813333 41.6z" fill="#FCCA1E" p-id="12355"></path><path d="M789.333333 924.8H234.666667c-35.413333 0-64-28.586667-64-64s28.586667-64 64-64h554.666666c35.413333 0 64 28.586667 64 64s-28.586667 64-64 64z" fill="#93A8FF" p-id="12356"></path></svg></a>
                                <a class="num" href="deletePosition?p_id=${position.p_id }&&e_id=${position.e_id }" title="删除" onclick="return confirm('您确定要删除吗？')">
                                    <svg t="1647835216012" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2962" width="35" height="35"><path d="M159.665 220.416c0-24.125 19.608-43.736 43.735-43.736h218.784v-43.789c0-24.125 19.61-43.735 43.846-43.735h87.467c24.183 0 43.793 19.61 43.793 43.735v43.789h218.781c24.183 0 43.792 19.61 43.792 43.736v43.791H159.665v-43.791z" fill="#00A0E9" p-id="2963"></path><path d="M203.4 307.942v583.534c0 24.127 19.608 43.735 43.789 43.735h525.094c24.238 0 43.789-19.608 43.789-43.735V307.941H203.4z m175.049 496.01c0 24.125-19.608 43.732-43.733 43.732-24.183 0-43.791-19.607-43.791-43.732V439.255c0-24.181 19.608-43.734 43.791-43.734 24.125 0 43.733 19.553 43.733 43.734v364.697z m175.048 0c0 24.125-19.551 43.732-43.733 43.732-24.237 0-43.734-19.607-43.734-43.732V439.255c0-24.181 19.498-43.734 43.734-43.734 24.182 0 43.733 19.553 43.733 43.734v364.697z m175.051 0c0 24.125-19.609 43.732-43.788 43.732-24.127 0-43.737-19.607-43.737-43.732V439.255c0-24.181 19.61-43.734 43.737-43.734 24.179 0 43.788 19.553 43.788 43.734v364.697z" fill="#036EB8" p-id="2964"></path></svg></a>
                            </td>
                            <td class="num">
                                <a class="num" href="publishPosition?p_id=${position.p_id }&&e_id=${position.e_id }" title="发布">
                                    <svg t="1650700606322" class="icon" viewBox="0 0 1092 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15433" width="35" height="35"><path d="M956.2624 13.632a38.4 38.4 0 0 1 60.1856 47.6416l-1.5104 1.8944-496.896 588.4928a25.6 25.6 0 0 0-5.9392 14.2592l-0.1024 2.2656V921.6a38.4 38.4 0 0 1-76.736 2.2528L435.2 921.6V668.1856a102.4 102.4 0 0 1 21.4784-62.7584l2.688-3.3024 496.896-588.4928z" fill="#FF6F26" p-id="15434"></path><path d="M968.32 4.096c27.5968-13.888 59.136 8.7936 55.424 38.8864l-0.3328 2.112-131.5456 742.4a38.4 38.4 0 0 1-47.4624 30.464l-2.2272-0.64-317.9904-103.3728a38.4 38.4 0 0 1 21.568-73.6768l2.176 0.64L823.936 730.624l110.4768-623.4368-795.4432 400.7808 235.2 76.4544a38.4 38.4 0 0 1 25.28 46.2336l-0.64 2.1632a38.4 38.4 0 0 1-46.2208 25.28l-2.176-0.64L26.5472 552.192c-31.8592-10.368-35.8528-53.3248-7.488-69.696l2.0736-1.1136 947.2-477.2608z" fill="#303133" p-id="15435"></path></svg>                                </a>
                                <a class="num" href="cancelPosition?p_id=${position.p_id }&&e_id=${position.e_id }" title="撤销">
                                    <svg t="1650700533808" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11995" width="35" height="35"><path d="M550.912 890.88c-4.096 0-7.9872-0.8192-11.8784-2.4576-11.4688-4.7104-18.8416-15.9744-18.8416-28.2624v-156.672c-96.256-68.1984-309.0432 65.536-385.4336 125.1328-10.4448 7.9872-24.576 8.6016-35.6352 1.6384-11.0592-7.168-16.1792-20.48-13.1072-33.1776 99.1232-401.408 347.3408-475.9552 433.9712-489.6768V163.84c0-12.288 7.3728-23.552 18.8416-28.2624 11.4688-4.9152 24.576-2.2528 33.3824 6.3488l357.1712 348.16c5.9392 5.7344 9.216 13.7216 9.216 21.9136s-3.2768 16.1792-9.216 21.9136l-357.1712 348.16c-5.7344 5.7344-13.5168 8.8064-21.2992 8.8064z m-96.8704-267.0592c44.032 0 84.992 12.0832 117.76 43.008 6.144 5.7344 9.6256 13.9264 9.6256 22.3232v98.304L864.0512 512 581.632 236.7488v98.304c0 16.7936-13.312 30.3104-30.1056 30.72-11.264 0.4096-261.5296 12.0832-381.7472 364.1344 72.2944-45.8752 185.9584-106.0864 284.2624-106.0864z" fill="#2F4072" p-id="11996"></path><path d="M343.2448 579.7888c-5.9392 0-11.8784-2.048-16.7936-5.9392a26.8288 26.8288 0 0 1-3.6864-37.4784c44.4416-54.272 95.0272-93.3888 150.3232-116.5312 13.7216-5.7344 29.0816 0.8192 34.816 14.336 5.7344 13.5168-0.6144 29.0816-14.336 34.816-47.104 19.6608-90.7264 53.8624-129.6384 101.1712-5.3248 6.3488-12.9024 9.6256-20.6848 9.6256z" fill="#FE76FF" p-id="11997"></path></svg>                                </a>
                            </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                <div class="pagination ue-clear">
                    <%--	分页--%>
                    <%--		<nav aria-label="Page navigation">--%>
                    <ul class="pagination">
                        <%--				前一页--%>
                        <c:choose>
                            <c:when test="${pageInfo.isFirstPage}">
                                <li>
                                    <a href="javascript:void(0)" aria-label="Previous">
                                        <span aria-hidden="true"><<</span>
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <a href="findAllAcceptedCandidatesByEId?e_id=${employer.e_id}&&pageNum=${pageInfo.prePage}" aria-label="Previous">
                                        <span aria-hidden="true"><<</span>
                                    </a>
                                </li>
                            </c:otherwise>
                        </c:choose>
                        <%--			中间具体页数--%>
                        <c:forEach items="${pageInfo.navigatepageNums}" var="pi">
                            <li><a href="findAllAcceptedCandidatesByEId?e_id=${employer.e_id}&&pageNum=${pi}">${pi}</a></li>
                        </c:forEach>

                        <%--			后一页--%>

                        <c:choose>
                            <c:when test="${pageInfo.isLastPage}">
                                <li>
                                    <a href="javascript:void(0)" aria-label="Next">
                                        <span aria-hidden="true">>></span>
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <a href="findAllAcceptedCandidatesByEId?e_id=${employer.e_id}&&pageNum=${pageInfo.nextPage}" aria-label="Next">
                                        <span aria-hidden="true">>></span>
                                    </a>
                                </li>
                            </c:otherwise>
                        </c:choose>
                    </ul>
                    <%--		</nav>--%>
                </div>            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script>
    function employerSkip1(){ const e_id="${employer.e_id}"; location.href="employerRecommend?e_id="+e_id}
    function employerSkip7(){ const e_id="${employer.e_id}"; location.href="findAllCandidates?e_id="+e_id}
    function employerSkip5(){ const e_id="${employer.e_id}"; location.href="employerNotice?e_id="+e_id}
    function employerSkip6(){ const e_id="${employer.e_id}"; location.href="findAllAcceptedCandidatesByEId?e_id="+e_id}
    function employerSkip8(){ const e_id="${employer.e_id}"; location.href="findAllPositionsByEId?e_id="+e_id}
    function addPosition(){ const e_id="${employer.e_id}"; location.href="addPosition?e_id="+e_id}

    const  msg="${message}";
    if(msg){
        alert(msg);
    }
</script>
</html>